package com.ruoyi.quartz.task;

import com.ruoyi.sj.mapper.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 定时任务调度测试
 *
 * @author ruoyi
 */
@Component("ryTask")
public class RyTask {
    @Autowired
    private OrderMapper orderMapper;

    public void ryParams(String params) {
        System.out.println("执行有参方法：" + params);
    }

    public void ryNoParams() {
        System.out.println("执行无参方法");
    }

    /**
     * 转账、紅包退款定时任务
     */
    public void updateMoney() {
        orderMapper.returnMoney();
        orderMapper.returnRedMoney();
    }

}
